package com.muyu.common.core.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

/**
 * @author Administrator  支付状态
 */

@Getter
public enum PayStatus {

    /**
     * 进行中
     */
    PENDING(0, "进行中"),

    /**
     * 支付成功、退款成功均是这个状态
     **/
    SUCCESS(1, "成功"),
    /**
     * 失败
     */
    FAIL(2, "失败"),


    TIMEOUT(3, "超时");

    @EnumValue
    private final int code;

    private final String name;

    PayStatus(int code, String name) {
        this.code = code;
        this.name = name;
    }

}
